cmake_minimum_required(VERSION 2.6)

project(shiokaze-desktop)

find_package(Qt4 REQUIRED)
include(${QT_USE_FILE})


include_directories(include)
include_directories(.)
include_directories(${CMAKE_CURRENT_BINARY_DIR})
add_definitions(-Wall -pipe)
add_definitions(${QT_DEFINITIONS})

qt4_wrap_cpp(MOC_SOURCES include/MainWindow.hh)

add_executable(shiokaze-desktop source/main.cc
								source/MainWindow.cc
								${MOC_SOURCES}
								${FORM_HEADERS})
target_link_libraries(shiokaze-desktop shio ${QT_LIBRARIES})

INSTALL(TARGETS shiokaze-desktop
  RUNTIME DESTINATION ${CMAKE_INSTALL_PREFIX}/bin
  LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX}/lib
  ARCHIVE DESTINATION ${CMAKE_INSTALL_PREFIX}/lib
)

INSTALL(FILES data/default.jpg data/menu.png
		DESTINATION ${CMAKE_INSTALL_PREFIX}/share/shiokaze/data)
